﻿using System.Windows.Forms;

namespace Kaleida.ServiceMonitor.UI
{
    public class NotificationPanelTabPage : TabPage
    {
        private readonly INotificationPanel panel;

        public NotificationPanelTabPage(INotificationPanel panel)
            : base(panel.PanelName)
        {
            this.panel = panel;

            var panelControl = panel.GetPanelControl();
            panelControl.Dock = DockStyle.Fill;
            Controls.Add(panelControl);
        }

        public INotificationPanel Panel
        {
            get { return panel; }
        }
    }
}
